package com.wy.domain;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "t_user")
@Data
public class User {
    //必须要指定一个@ID 否则会报错 No identifier specified for entity: boottest.domain.User
    @Id
    private int id;
    private String name;
    private int age;
}
